package com.ruoyi.project.loans.payment.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 还款计划表 payment_detail
 * 
 * @author ruoyi
 * @date 2020-06-18
 */
public class PaymentDetail extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** ID */
	private Integer id;
	/** 还款利息 */
	private BigDecimal paymentInterest;
	/** 还款本金 */
	private BigDecimal paymentPrincipal;
	/** 还款时间 */
	private String paymentTime;
	/** 借款ID */
	private Integer loanId;
	/** 每期还款总额 */
	private BigDecimal paymentAverage;

	public BigDecimal getPaymentAverage() {
		return paymentAverage;
	}

	public void setPaymentAverage(BigDecimal paymentAverage) {
		this.paymentAverage = paymentAverage;
	}

	public void setId(Integer id)
	{
		this.id = id;
	}

	public Integer getId() 
	{
		return id;
	}

	public BigDecimal getPaymentInterest() {
		return paymentInterest;
	}

	public void setPaymentInterest(BigDecimal paymentInterest) {
		this.paymentInterest = paymentInterest;
	}

	public BigDecimal getPaymentPrincipal() {
		return paymentPrincipal;
	}

	public void setPaymentPrincipal(BigDecimal paymentPrincipal) {
		this.paymentPrincipal = paymentPrincipal;
	}

	public String getPaymentTime() {
		return paymentTime;
	}

	public void setPaymentTime(String paymentTime) {
		this.paymentTime = paymentTime;
	}

	public void setLoanId(Integer loanId)
	{
		this.loanId = loanId;
	}

	public Integer getLoanId() 
	{
		return loanId;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("paymentInterest", getPaymentInterest())
            .append("paymentPrincipal", getPaymentPrincipal())
			.append("paymentAverage", getPaymentAverage())
            .append("paymentTime", getPaymentTime())
            .append("loanId", getLoanId())
            .toString();
    }
}
